package com.zpark.sentinel_block_handler;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import com.zpark.pojo.Person;
import com.zpark.utils.ResponseData;

/**
 * @PackageName: com.zpark.sentinel_block_handler
 * @ClassName: GloudHnadler
 * @Description:
 * @author: RZS
 * @date: 2024/5/7  9:53
 */
public class GlobalHandler {

    public static ResponseData<Person> test02Exception(BlockException e){
        return new ResponseData<>(5000,
                "ERROR -> " + e.getMessage(),
                null);
    }
}
